
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class ActivityDailyCfg : public ManualSingleton <ActivityDailyCfg>
{
	friend ManualSingleton <ActivityDailyCfg>;
public:
	ActivityDailyCfg();
	~ActivityDailyCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const ActivityDailyCfgInfo *GetActivityDailyCfgInfo(int32_t activeId);
	const ActivityDailyCfgMap *GetActivityDailyCfgMap() { return &m_ActivityDailyCfgMap; }
private:
	ActivityDailyCfgMap m_ActivityDailyCfgMap;
};

#define  g_MakeActivityDailyCfgTable() (ActivityDailyCfg::Instance())
#define  g_GetActivityDailyCfgTable() (ActivityDailyCfg::GetInstance())
#define  g_DelActivityDailyCfgTable() (ActivityDailyCfg::Destroy())